import request from '@/utils/request'

// 查询销售统计列表
export function listSysSalesSummary(query) {
  return request({
    url: '/SysSales/SysSalesSummary/list',
    method: 'get',
    params: query
  })
}

// 查询销售统计详细
export function getSysSalesSummary(summaryId) {
  return request({
    url: '/SysSales/SysSalesSummary/' + summaryId,
    method: 'get'
  })
}

// 新增销售统计
export function addSysSalesSummary(data) {
  return request({
    url: '/SysSales/SysSalesSummary',
    method: 'post',
    data: data
  })
}

// 修改销售统计
export function updateSysSalesSummary(data) {
  return request({
    url: '/SysSales/SysSalesSummary',
    method: 'put',
    data: data
  })
}

// 删除销售统计
export function delSysSalesSummary(summaryId) {
  return request({
    url: '/SysSales/SysSalesSummary/' + summaryId,
    method: 'delete'
  })
}
